﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Core.ECS.Components
{
    [DataContract]
    public class CSelfActive : IComponent
    {
        [DataMember]
        public bool IsSelfActive {  get; set; }
        public Guid Id
        {
            get => _id;
            set => _id = value;
        }
        [DataMember]
        private Guid _id;
        public CSelfActive(Guid id, bool isSelfActive = true)
        {
            IsSelfActive = isSelfActive;
            _id = id;
        }
    }
}
